package com.woniuxy.mesboot.service.impl;

import com.woniuxy.mesboot.entity.MesScrap;
import com.woniuxy.mesboot.mapper.MesScrapMapper;
import com.woniuxy.mesboot.service.MesScrapService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class MesScrapServiceImpl implements MesScrapService {
    @Autowired
    private MesScrapMapper scrapMapper;
    @Override
    public List<MesScrap> selectAll() {
        return scrapMapper.selectAll();
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return scrapMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(MesScrap record) {
        return scrapMapper.insert(record);
    }

    @Override
    public int insertSelective(MesScrap record) {
        return scrapMapper.insertSelective(record);
    }

    @Override
    public MesScrap selectByPrimaryKey(Long id) {
        return scrapMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(MesScrap record) {
        return scrapMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(MesScrap record) {
        return scrapMapper.updateByPrimaryKey(record);
    }
}
